package com.mdd.admin.vo.user;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户Vo
 */
@Data
public class UserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String sn;
    private String avatar;
    private String realName;
    private String nickname;
    private String account;
    private String mobile;
    private String gender;
    private String channel;
    private BigDecimal userMoney;
    private BigDecimal userPoints;
    private String lastLoginIp;
    private String lastLoginTime;
    private String createTime;
    
    private Long couponCount;

    public void setGender(Integer gender) {
        switch (gender) {
            case 0:
                this.gender = "未知";
                break;
            case 1:
                this.gender = "男";
                break;
            case 2:
                this.gender = "女";
                break;
        }
    }

}
